<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="commanageCss" jsFile="profitRuleJs" current="公司分成规则设置">
	<div class="page-content">
		<div class="page-head">
			<div class="page-title">
				<h1>分成规则设置
					<small>新增分成规则</small>
				</h1>
			</div>
		</div>
		<div class="row">
			<div class="portlet light borderd">
				<div class="portlet-body form edit-form">
					<form action="#" id="createForm" class="createForm createform">
			
						<input type="hidden" id="company_type" name="company_type"    value="" >			
						<input type="hidden" id="product_name" name="product_name"    value="" >	
						<input type="hidden" id="company_name" name="company_name"    value="" >	
						<input type="hidden" id="channel_id" name="channel_id"    value="">	
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<div class="input-group">
										<label class="input-group-addon">公司名称</label>
										<div class="input-group-content">
											<select class="form-control input-inline" name="company_id" id="company_id">
												<option value="">--请选择--</option>
											</select>
										</div>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<div class="input-group">
										<label class="input-group-addon">客户属性</label>
										<div class="input-group-content">
											<input type="text" id="company_type_str" name="company_type_str" class="form-control" placeholder="客户属性"  disabled value="" style="">
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<div class="input-group">
										<label class="input-group-addon">所属渠道</label>
										<div class="input-group-content">
											<input type="text" id="channel_id_str" name="channel_id_str" class="form-control" placeholder="所属渠道"  disabled value="" style="">
										</div>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<div class="input-group">
										<label class="input-group-addon">产品名称</label>
										<div class="input-group-content">
											<select class="form-control input-inline" name="product_id" id="product_id">
												<option value="">--请选择--</option>
											</select>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<div class="input-group">
										<label class="input-group-addon">分成规则</label>
										<div class="input-group-content">
											<input type="text" id="channel_profie_new_edit" name="channel_profie_new_edit" class="form-control" placeholder="分成规则"   value="${objVO.channel_profie}" style="">
										</div>
									</div>
								</div>
							</div>
						</div>
                		<div class="form-actions top">
                			<div class="row">                	
                				<button type="submit" id="GoodsSave" class="btn green GoodsSave">保存</button>			
                				<a href="${context}/company_profit/list_view" class="btn default">取消</a>
                			</div>
                		</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<script>
		function check(v){
		    var num = $(v).val();
			var a=/^[0-9]*(\.[0-9]{1,2})?$/;
				if(!a.test(num)){
					$(".tips").css("display","")
					$(v).val("");
					return false;
				}else{
					$(".tips").css("display","none")
				}
		}
	</script>
</@page.mainTemplate>